package com.wyh.seata.dao;

import com.wyh.seata.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/12/1 16:09
 */
@Mapper
public interface OrderMapper {

    //1.新建订单
    void createOrder(Order order);

    //2.改订单状态
    void updateOrder(@Param("userId") Long userId, @Param("status") Integer status);
}
